package com.example.seckilldemo.service;

import com.example.seckilldemo.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.seckilldemo.vo.LoginVo;
import com.example.seckilldemo.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangchong
 * @since 2022-05-23
 */
public interface UserService extends IService<User> {

    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    /**
     * 跟根据cokkie获取用户
     * @param userTicket
     * @return
     */
    User getUserByCookie(String userTicket,  HttpServletRequest request, HttpServletResponse  response);
}
